﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	产品对比
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
  <link href="../../Content/css/Instance/Product/ProductComparison.css" rel="stylesheet"
        type="text/css" />
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<table class="tb_prod_comp" cellpadding="0"  cellspacing="0">
    <%System.Data.DataSet ds = (System.Data.DataSet)ViewData.Model;
      if (ds != null && ds.Tables[0].Rows.Count > 0)
      {
        %>
    
    <tbody>
        <tr>
        <th class="pic"></th>
            <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
              {%>
            <td>
                <a href="/Product/ProductDetails/<%=ds.Tables[0].Rows[i]["id"].ToString()%>">
                    <img class="prod_img" src="../..<%=ds.Tables[0].Rows[i]["img_url"].ToString()%>"/>
                </a>
            </td>
          <%} %>
        </tr>
        <tr>
        <th class="des"> 产品名称</th>
            <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
              {%>
            <td>
                <a href="/Product/ProductDetails/<%=ds.Tables[0].Rows[i]["id"].ToString()%>"><%=ds.Tables[0].Rows[i]["product_name"].ToString()%></a>
            </td>
          <%} %>
        </tr>
        <tr>
        <th class="des"> 所属品牌</th>
            <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
              {%>
            <td>
                <a href="/Brand/BrandDetails/<%=ds.Tables[0].Rows[i]["brand_id"].ToString()%>"><%=ds.Tables[0].Rows[i]["brand_name"].ToString()%></a>
            </td>
          <%} %>
        </tr>
        <tr>
        <th class="des"> 产品类别</th>
            <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
              {%>
            <td>
                <a href="/Product/ProductList/<%=ds.Tables[0].Rows[i]["category_id"].ToString()%>"><%=ds.Tables[0].Rows[i]["category_name"].ToString()%></a>
            </td>
          <%} %>
        </tr>
        <tr>
        <th class="des"> 产品价格</th>
            <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
              {%>
            <td><%=ds.Tables[0].Rows[i]["market_price"].ToString()%></td>
          <%} %>
        </tr>
        <tr>
        <th class="des"> 功效</th>
            <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
              {%>
            <td><%=ds.Tables[0].Rows[i]["health_functions"].ToString()%></td>
          <%} %>
        </tr>
        <tr>
        <th class="des"> 规格</th>
            <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
              {%>
            <td><%=ds.Tables[0].Rows[i]["product_specification"].ToString()%></td>
          <%} %>
        </tr>
        <tr>
        <th class="des"> 适用人群</th>
            <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
              {%>
            <td><%=ds.Tables[0].Rows[i]["suit_crowds"].ToString()%></td>
          <%} %>
        </tr>
        <tr>
        <th class="des"> 生产企业</th>
            <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
              {%>
            <td><%=ds.Tables[0].Rows[i]["producer"].ToString()%></td>
          <%} %>
        </tr>
    </tbody>
    <%}
      else
      { %>
        暂无
    <%} %>
</table>
 

</asp:Content>
